package top.bug.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.bug.blog.entity.po.SysOperationLog;

import java.time.LocalDateTime;

/**
 * @author <a href="https://github.com/jiusi66">九思.</a>
 * @email 10837907@qq.com
 * @from <a href="https://www.52bug.top">递归茶馆-www.52bug.top</a>
 * @description 后台操作日志 接口
 */
public interface OperationLogService extends IService<SysOperationLog> {
    /**
     * 异步保存日志
     */
    void saveAsync(SysOperationLog log);

    /**
     * 删除指定日期前的日志
     */
    int deleteBeforeDate(LocalDateTime threshold);
}